﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CRM.Admin.Contracts.Dto.Customer;
using CRM.Admin.Contracts.Model.Customer;
using KingsSharp.Common.Data;
using KingsSharp.Core;

namespace CRM.Admin.Contracts.Contract.Customer
{
    public interface IPurchaseService :IDependency
    {
        /// <summary>
        /// 采购渠道明细集合
        /// </summary>
        IQueryable<Purchase> Purchases { get; }

        /// <summary>
        /// 新增采购渠道
        /// </summary>
        /// <param name="dtos">采购渠道信息dto</param>
        /// <returns></returns>
        OperationResult Insert(params PurchaseDto[] dtos);


        /// <summary>
        /// 编辑采购渠道明细
        /// </summary>
        /// <param name="dtos">采购渠道明细信息dto</param>
        /// <returns></returns>
        OperationResult Update(params PurchaseDto[] dtos);

        /// <summary>
        /// 删除采购渠道
        /// </summary>
        /// <param name="ids">要删除的主键数组</param>
        /// <returns></returns>
        OperationResult Delete(params Guid[] ids);
    }
}
